#!/bin/sh

i=0
cnt=1

if [[ $# -eq 2 ]];then
	cnt=$(($1/$2))
else [[ $# -eq 1 ]]
	cnt=$1
fi

while true
do

	i=$((i+1))
	if [[ $i -gt $cnt ]];then
		break
	fi

	echo "used: $i, left: $((cnt-i))"
	input tap 1714 1471
	sleep 81
done

